package com.anlu.pattern.action.strategy;

import org.springframework.stereotype.Service;

/**
 * 首次购
 */
@Service(value = "NewerDiscount")
public class NewerDiscount implements Discount {
    @Override
    public int calculate(int money) {
        System.out.println("进入到NewerDiscount");
        if (money > 100){
            return money - 20;
        }
        return money;
    }
}
